package com.example.dagger;

import android.app.Application;

public class MyApplication extends Application {

    private MyComponent myComponent;

    @Override
    public void onCreate() {
        super.onCreate();
       myComponent = DaggerMyComponent.builder().httpModule(new HttpModule()).databaseModule(new DatabaseModule())
                .build();
    }

    public MyComponent getAppComponent() {
        return myComponent;
    }
}
